/**
 * @projectName study-note
 * @package Visitor
 * @className Visitor.AbstractVisitor
 */
package Visitor;

/**
 * AbstractVisitor
 * @description 访问者抽象类
 * @author answer_wx
 * @date 2022/7/6 16:48
 * @version 1.0
 */
public abstract class AbstractVisitor {
    protected String name;
    public AbstractVisitor(String name) {
        this.name = name;
    }
    abstract public void visitorConcreteElementA(ConcreteElementA concreteElementA);
    abstract public void visitorConcreteElementB(ConcreteElementB concreteElementB);
}